package com.qf.smsplatform.webmaster.mapper;


import com.qf.smsplatform.webmaster.pojo.TBlackList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BlackListMapper {
    @Select("select * from t_black_list where id=#{id}")
    TBlackList TBlackListById(Long id);

    @Insert("INSERT INTO t_black_list (mobile,owntype,creater) VALUES(#{mobile},#{owntype},#{creater})")
    int addBlack(TBlackList black);

//    @Select("SELECT * FROM t_black_list ")
    List<TBlackList> findAll();

    int updateBlack(TBlackList blackList);

    int deleteBlackByIds(@Param("ids") List<Integer> ids);
    int deleteBlackByIdsAndCreater(@Param("ids") List<Integer> ids,@Param("creater") Long creater);
}
